﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace AppSocketModel
{
    /// <summary>
    /// 发送给gps设备的命令基类
    /// </summary>
    [BsonIgnoreExtraElements]
    public class SendCommandBase
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { set; get; }

        /// <summary>
        /// 归属账户id
        /// </summary>
        public string AccountId { set; get; }

        /// <summary>
        /// 归属账户
        /// </summary>
        public string AccountCode { set; get; }

        /// <summary>
        /// 账户角色
        /// </summary>
        public AccountRole AccountRole { set; get; }

        /// <summary>
        /// 命令时间
        /// </summary>
        public DateTime CmdDateTime { set; get; }

        /// <summary>
        /// 设备IMEI
        /// </summary>
        public string IMEI { set; get; }

        /// <summary>
        /// 命令代码
        /// </summary>
        public string CmdCode { set; get; }


        /// <summary>
        /// 命令描述
        /// </summary>
        public string CmdCodeStr { set; get; }


        /// <summary>
        /// 命令参数
        /// </summary>
        public string CmdParamer { set; get; }


        /// <summary>
        /// 命令方向
        /// </summary>
        public string CmdToward { set; get; }

        /// <summary>
        /// 返回结果
        /// </summary>
        public string Result { set; get; }
        
    }
}
